Wolfsburg have pipped Arsenal to the signing of Bayern Munich's Luiz Gustavo, landing him on a five-year contract.