Let Ua and Ud be the energy densities in air and in a dielectric of constant k for same field. Then,
If E is the electric field ,
energy density in air, Ua=12ϵ0E2 and
Energy density in dielectric, Ud=12(kϵ0)E2=k12ϵ0E2=kUa