Mahindra & Mahindra has said it has signed an agreement to invest INR40bn (USD1bn) for a new truck factory in the western state of Maharashtra.