When I replaced mine, I knocked them out with a brass rod and knocked the new ones in with the cheapest eBay garbage bearing race installer tool I could find. Pretty much just some aluminum disks with a handle. I also used aftermarket bearings. I don't remember what brand I went for, but certainly not the cheapest available.
If the bearings aren't damaged, just loose, you could just clean/repack them. My old ones looked mint--I only replaced them because I was tracking down a bearing noise and really hoping it wasn't coming from the rear axle. (It was.)