when do you need to turn on/off the power supply?
from slicer, you can add a gcode to run ext1 (if your machine is single extruder) every layer change or something like this.
to physically turn on-off the psu, i suggest you to use a solid state relay to ext1, that close the circuit between the psu and ac.
if you only need to power up the psu, when ramps is only connected to your pc, thats a bit more difficult.
in this case, you need a transistor that is able to drive a relay, and connect this to one of the servo output on ramps, but i have no idea how to use servos and how to control them