Im not sure how you would do this with one switch. It is possible with two switches tho.

You would have to basically run an extra wire to a second switch for the signal wire.

It would be something where you flip the first switch to interrupt the actual signal wire (causing 0v signal). And then flip the 2nd switch to active the wire with the resistor in it.