The fast-food giant is investing $8.5 billion in a modernization initiative that will also include a training effort and upgrades to food and marketing.