We argue that the phase across an asymmetric dc SQUID threaded by a magnetic flux can experience an effective ratchet (periodic and asymmetric) potential. Under an external ac current, a rocking ratchet mechanism operates whereby one sign of the time derivative of the phase is favored. We show that there exists a range of parameters in which a fixed sign (and, in a narrower range, even a fixed value) of the average voltage across the ring occurs, regardless of the sign of the external current dc component.