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 ...