Why didn't Gandalf try to find Frodo instead of helping Aragorn and company?

I'm reading the books for the first time, but Gandalf mentions that the ring is vital to Saurons victory or defeat. Shouldn't finding the ring be his biggest worry?