Here is a simple circuit that measures the peak voltage. Because we know rms to peak ratio we can do the math.
Here 22Vrms = 30Vpk. The resistors divide the 30V to just under 5V for the Arduino.
Do you want a real accurate "RMS" reading? or just a mildly accurate "what is the voltage"?