You must yield the right-of-way to an emergency vehicle by:

Pull to the right edge of the road, or as far to the right as possible, when you see or hear an emergency vehicle approaching from any direction. Come to a stop and wait for the emergency vehicle to pass. If you are in an intersection, drive through the intersection before stopping.
DMV Writen Test