Cook pasta according to package directions, drain. Place pasta into a large bowl. In a medium bowl, mix mayonnaise with ranch dressing, salt, and pepper. Mix mixture with pasta along with onion and bacon. Mix until pasta is evenly coated. Cover ane refrigerate until serving.