The cost of groceries and supply chains will be under the microscope as the nation's two biggest retailers face an inquiry into supermarket prices.