Power off the circuit at the breaker box.
Unscrew the switch out of the wall box and gently pull it out.
Prep the wires to connect them to the new switch.
Connect the wires to the new 3-way switch.
Use electrical tape to cover the open terminlas of wire
After wiring the new switch, insert it in the wall box.