My laundry room is near the garage. In the winter with freezing temps, the washer drain pipe freezes quite often. I have had many instances of water overflowing and getting into the sub-floor and it has become a real pain. This only happens in the winter freezing temps so I am pretty sure the drain is not clogged. Any suggestions? I have read about baseboard heaters, electrical heating wires, insulation. I was thinking of getting a wall-mounted baseboard heater to put on the wall where the drain opening is located. What works best? Any help would be appreciated.

Thanks,
Leo