I've seen people recommend spray foam, silicone caulk, and polyurethane caulk! Specifically I've seen Pro Clima Contega HF and GreenGlue Sealant recommended for a couple similar type of locations from previous questions asked here.