The fear of being zapped into next week—or beyond—keeps even some intrepid do-it-yourselfers away from electrical work. Generally speaking, that's wise, because messing with electricity can be lethal.
Turn off the power, check the wires with a voltage tester, then disconnect and remove the light fixture. Invert the spray foam can and shove the tube up into the gap between the electrical box and the ...