Is the frame bare? Meaning engine out, wiring removed, etc... Or is bike assembled and you want to treat areas you can see while the bike is still assembled?
If it's disassembled, the easiest way is to blast it with glass head, sand, walnut shells, or soda blast media. The latter is cheapest, and easiest to do. You can DIY a soda blast at home. Just use specific blast media, not kitchen grade baking soda.
If it still assembled, saturate the area with WD-40 and scrub with any: tin foil, ScotchBrite pads (green), 0000 steel wool, etc. Many of these pads can be bought as electric drill attachments or to a compressor driven tool. Wire brushes work too, they just make a mess for small areas.
Obviously afterwards you'll need to clean, prime and paint the areas. If you have rust on the frame tubes, that's not a good sign. History on the bike? Some pics would help too.