The most important factor is air sealing both the floor and the ceiling layers, as would blowing the cavities a
low density cellulose, not dense-packing, and just barely filling the cavity.
Using
GreenGluetm and double-layering the ceiling gypsum would help too.
Foam is not a solution- it would mechanically couple the subfloor to the ceiling gypsum far more than low-density fiber.
Getting rid of all the squeaks & creaks in the floor would be a first and very important step. Those are usually due to a flexing of floorboards on an nail where the floorboard & subfloor doesn't quite meet, or at a subfloor & joist fastener. There are snap-off screws that can be face-drilled into the squeaky section to keep the boards from moving relative to each other & working against the nail like a violin bow.