Whether or not the guy in the commercial is the one singing the song, the song will be pre-recorded and mimed to on set/location. The sound recorded from one shot to another, the timing of the performance and inflection would change from take to take, so songs are always pre-recorded.