Hello Margaret:
There are a number of foliage feeding insects that attack our garden plants. As you noted actual holes in the leaves, an insectide containing carbaryl will work. Please read and follow the label instructions, especially note how many days after you treat before you can harvest your beans.
Sincerely, Richard Hentschel