To prepare, trim beans so that they will just fit under the rim of pint jars, approximately 4 inches long. Additionally, peel the garlic cloves and have them prepared for canning.
Prepare jars, lids, and rings by washing and keeping warm. Begin heating the water bath canner (make sure water will be at least one inch above jars once submerged).
Fill each jar with one to two cloves of garlic, one head of dill, and 1/8-1/4 teaspoon cayenne pepper. Stuff jars with trimmed beans, keeping the beans below the top ring portion.
Meanwhile, bring salt, vinegar, and water to a boil reduce to a simmer until the jars are prepped. Pour the pickling liquid over beans. Remove air bubbles.
Wipe the top of the jar with a damp piece of paper towel. Put lids and rings on, tightening to finger tip tight.
Lower into canner, raising heat and bringing to a rolling boil. Process for 10 min, adjusting for altitude (if over 1000 feet).
Remove the canner from heat, and allow jars to rest 5 min. Remove from canner and allow to cool at least 12 hours before storing jars.