Why can't you just go to the real hills and ride them? Is it too far & you don't have time? Hill repeats on smaller hills will help some, but you probably need to go bigger to get more benefit.
Mashing vs spinning is a personal choice. If you can mash, you'll be able to generate more speed if that's what you want, but it's hard on the knees.