Insulate the surfaces the garage shares with the house first: the ceiling under a bonus room and the common wall. Foaming the whole garage only pays when you heat it, such as a workshop, and then the overhead door matters as much as the walls.
More detail
In Dublin, Hilliard, and Pickerington subdivisions, the most common garage complaint is really a bedroom complaint: the room over the garage is cold because the floor between them was insulated with batts that have sagged away from the subfloor. The Residential Code of Ohio expects floor insulation to stay in permanent contact with the underside of the subfloor, and closed-cell foam sprayed against it does that by definition. In Climate Zone 5 the code sets floors over unconditioned space at R-30, or insulation that fills the framing cavity at a minimum of R-19, a step up from the R-19 used in Zone 4. For a detached garage used as a heated shop, closed-cell on the walls and roof works, but an uninsulated overhead door will dominate the heat loss, and foam in any space people occupy needs a thermal barrier. The bonus room FAQ covers the room over the garage in detail.