How to add hair particle to ocean modifier?
Move the particle system down the modifier stack, so that it comes after the ocean modifier.
(Use the Triangle icons to the right of the modifier to re-arrange the order)

Then, on the particle system settings enable Use Modifier Stack

From the Blender Manual:

Use Modifier Stack
Take any Modifiers above the Particle Modifier in the modifier stack into account when emitting particles.