Squash borers... try putting out a few salad bowls full of yellow-dyed water with a few drops of liquid soap in them. This may catch a few adults before they lay eggs. Once the larvae are established in a stem there isn't much you can do.