Head to Moltara City and look for the doorway that leads down into the Caves — the Rainbow Worm appears there.
It is a random spawn, so the method is simply to refresh the page until it shows up. Patience does the job.