Stop in for a cup of coffee

I would use calk, spray foam can let the critters chew through.
Yep. Caulk. If I use spray foam for a bigger opening, I still coat it like 1/4" with caulk.