What a good question,
I use many "over the tie" Kadee magnetic delay uncoupler ramps on my layout. They fit to perfection, so I don't know if anything you could find at a hardware store would have the same tolerence. I suppose you could mount any kind of magnet under the ties, if it was strong...