Integral field spectroscopy as a probe of galaxy evolution