Put on a pair of safety goggles and work gloves.
Insert a 1/2-inch diameter masonry bit into a power drill.
Drill a hole at the top of the wall, above each row of cells of the cinder blocks.
Measure the height of your wall. The recommended amount of foam you use is usually determined by how tall your wall is. Check the product instructions to find out how much foam to inject into each row of cinder block cells.
Place the tube end of the insulation foam gun into the first hole. Inject the recommended amount of foam liquid into the hole. Use delayed-foaming insulation. The foam liquid will run down into the bottom of the cinder blocks, and then begin expanding as it rises. If you use a quick-expanding foam, you will have to drill a hole in every single cinder block.
Repeat step 5 for each row of cinder block cells. Paint over the holes if you want a finished look to the wall.