Sealing around garage door?

Preeeetty big gap around and under the sides of the garage door. Big ol piece of some kind of rubber under it filling the gaps in the floor. What’s the easiest way to seal it up from airflow? Considered spray foam but figured I’d ask.