Blue-and-yellow macaws are primarily fruit eaters. In the wild, they consume fruits, seeds, and nuts. They may occasionally eat insects opportunistically, but this is not a significant part of their diet.
Pet macaws are typically fed commercial pellets, seeds, and fruits, with insects rarely included. So while a blue-and-yellow macaw might very occasionally eat a bug, it is not a bug eater.