For an electromagnetic wave, the electric and magnetic energy densities are equal. The energy densities are given by:
\[
u_E = \frac{\epsilon_0 E^2}{2}, \quad u_B = \frac{B^2}{2 \mu_0}
\]
Since the speed of the wave \( c = \frac{1}{\sqrt{\mu_0 \epsilon_0}} \), we have:
\[
E = cB
\]
Thus, the ratio of electric field energy density to magnetic field energy density is:
\[
\frac{u_E}{u_B} = 1
\]