Are they limp when you buy them? Do they snap?
Look for bright color and a good snap when you break them in half, avoid limp, shriveled, wrinkled or blemished. If the seeds are swelling through the pod, they're likely overripe and might be tough.
When I buy mine they are good enough to eat right there, then I only cooked them enough to be heated through and keep that fresh snap quality.