Back in the day, carpenters used brace-and-bit drills. For lighter jobs, manufacturers came up with a gear-driven model. More efficient and easier-to-use power drills tackle these jobs now, but ...
Use a drill bit that's the same diameter as the shank of the screw. Then drill a pilot hole into the material that's the same depth as the screw you'll be fastening.